//! @Author: DengLibin 
//! @Date:  2022-04-20 20:31:10
//! @Description:

use env_logger::TimestampPrecision;
use log::{self};

#[test]
pub fn test_log() {
    env_logger::builder()
        .format_timestamp(Some(TimestampPrecision::Seconds))
        .filter_level(log::LevelFilter::Trace)
        .init();

    log::debug!("this is a debug {}", "message");
    log::error!("this is printed by default");
    let x = 3 * 4; // expensive computation
    log::info!("the answer was: {}", x);
}
